<template>
  <div>
    <h2>记账记录</h2>
    <ul>
      <li v-for="record in records" :key="record.date">
        {{ record.date }} - {{ record.category }}: ￥{{ record.amount }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "StatisticsView",
  props: {
    records: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>

</style>